﻿#ifndef POSTCOMMAND_CMDLINECHARTSIDEBARVALUEDATACHANGED_H
#define POSTCOMMAND_CMDLINECHARTSIDEBARVALUEDATACHANGED_H

#include "CommandManager/CommandBase.h"

namespace PostCommand
{
    /// @brief 后处理保存图像命令
    class CmdLineChartSidebarValueDataChanged : public CommandManager::CommandBase
    {
        Q_OBJECT

    public:
        CmdLineChartSidebarValueDataChanged();
        ~CmdLineChartSidebarValueDataChanged();

        bool execute() override;
        void undo() override;
        void redo() override;

        void setLineChartSidebarValueDataChanged(int mainWindowId, int currentIndex);

    private:
        int m_mainWindowId;
        int m_currentIndex;
    };
} // namespace PostCommand

#endif
